/**
 * 
 */
package cn.hbu.zlfw.admin.dao;

import java.util.List;
import java.util.Map;

import cn.hbu.zlfw.admin.entity.Expert;
import cn.hbu.zlfw.common.base.dao.BaseDao;
import cn.hbu.zlfw.common.util.PageModel;

/**
* @ClassName: ExpertDao
* @Description: TODO(这里用一句话描述这个类的作用)
* @author tiddar
* @date 2018年8月8日
*
*/

public interface ExpertDao extends BaseDao<Expert, String>{
	
	/**
	 * 
	  * @Title: getExpertByParam 
	  * @Description: 条件查询专家
	  * @return Expert 
	  * @throws
	 */
	Expert getExpertByParam(Map<String, Object> params);
	/**
	 * 
	 * @Title: listAllScienceByParamsToUnit 
	 * @Description: 分页条件查询本单位所有专家
	 * @return PageModel<Expert> 
	 * @throws
	 */
	PageModel<Expert> listAllScienceByParamsToUnit(PageModel<Expert> pageModel, String userName, Integer schoolType);
	/**
	 * 
	 * @Title: listExpertByParamsToUnit 
	 * @Description: 单位管理员查询本单位所有专家信息
	 * @return PageModel<Expert> 
	 * @throws
	 */
	PageModel<Expert> listExpertByParamsToUnit(PageModel<Expert> pageModel,String userName, String department, Integer schoolType);
	/**
	 * 
	 * @Title: getExpertToUpdate 
	 * @Description: 检测修改后的手机号是否已经被其他人已经注册
	 * @return Expert 
	 * @throws
	 */
	Expert getExpertToUpdate(String phoneNumber, String id);

}

